<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#include "../common/meta.html">
<style type="text/css">
html, body{ margin: 0; padding: 0;
}
</style>
<script type="text/javascript" src="${path.rootPath}/resource/jquery/jquery.js"></script>
<script type="text/javascript">
document.bowos = {
	width:590,
	height:280,
	closeIcon:false,
	close:function(){
		window.close();
	},
	onClick:function(){
		document.bowos.close();
	},
	onload:function(){
		document.bowos.resize();
	},
	resize:function(){
		$main = $(document.bowos.main);
		$main.height(0);$main.height($(document).height());
		$main.width(0);$main.width($(document).width());
		$main.children(".modal-frame").height("100%").css("overflow","hidden");
	}
};

window.bowos = {
	uploadSuccess:function(data){
		setTimeout(function(){
			alert("上传成功");
			document.bowos.returns(data);
			document.bowos.close();
		},0);
	},
	uploadError:function(data){
		setTimeout(function(){
			alert("上传失败");
			document.bowos.returns(data);
		},0);
	}
}
</script>
</head>
<body>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
             id="HelloWorld" width="${requestScope.getParam("width")?number + 73}" height="${requestScope.getParam("height")?number + 122}"  
             codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">  
             <param name="movie" value="${path.rootPath}/resource/bowos/flash/pictureEditor/Main.swf" />  
             <param name="quality" value="high" />  
             <param name="bgcolor" value="ffffff" />  
             <param name="allowScriptAccess" value="sameDomain" /> 
             <param name="FlashVars" value="action=http://localhost:8080/xq/view/common/Temp.action.bowos&fieldName=file">
             <embed src="${path.rootPath}/resource/bowos/flash/pictureEditor/Main.swf" quality="high" bgcolor="ffffff"  
                 width="${requestScope.getParam("width")?number + 73}" height="${requestScope.getParam("height")?number + 122}" name="esyer" align="middle"  
                 play="true"
                 loop="false"  
                 quality="high"  
                 allowScriptAccess="always"
                 flashvars="action=http://localhost:8080/xq/view/common/Temp.action.bowos&fieldName=file"
                 type="application/x-shockwave-flash"  
                 pluginspage="http://www.adobe.com/go/getflashplayer">  
             </embed>  
     </object>
</body>
</html>